<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Netty聊天室</title>
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
    <div class="chat-container">
        <div class="chat-header">
            <h1>Netty聊天室</h1>
            <div class="status" id="status">未连接</div>
        </div>
        
        <div class="chat-main">
            <div class="chat-messages" id="messages"></div>
            
            <div class="chat-input">
                <input type="text" id="messageInput" placeholder="输入消息..." disabled>
                <button id="sendButton" disabled>发送</button>
            </div>
        </div>
        
        <div class="chat-sidebar">
            <div class="user-info">
                <input type="text" id="usernameInput" placeholder="输入用户名">
                <button id="connectButton">连接</button>
            </div>
            
            <div class="online-users">
                <h3>在线用户 (<span id="userCount">0</span>)</h3>
                <div class="user-list" id="userList">
                    <div class="no-users">暂无在线用户</div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="/static/js/chat.js"></script>
</body>
</html> 